using Engine;
using Game;
using GameEntitySystem;
using SCIENEW.VoltNet;

namespace SCIENEW {
    public class MagnetizerDevice : FourDirectionalDevice, IVoltDevice {
        public MagnetizerDevice() : base("MagnetizerDevice", 203, backSlot: 204) { }

        public HashSet<int> GetFaceMask(int value) => [0, 1, 2, 3, 4, 5];

        public VoltElement? GetVoltElement(SubsystemVoltNet subsystemVoltNet, SubsystemTerrain subsystemTerrain, Point3 position, int blockValue) => new MagnetizerVoltElement(subsystemVoltNet, subsystemTerrain, position, blockValue);

        public float GetStandardPL(int value, CellFace cellFace) => 1;

        public float GetStandardUL(int value, CellFace cellFace) => 1;

        public override DeviceBehavior[] GetBehaviors(Project project) => [new VoltDeviceBehavior(project)];
    }
}